package com.lghs.stutor;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

/**
 * Created by User on 5/25/13.
 */
public class Settings extends Activity {
    static String username;
    Intent i;
    Bundle b;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_settings);
        b = getIntent().getExtras();
        username = b.getString("uname");
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        i = new Intent();
        i.setClass(getApplicationContext(), Home.class);
        i.putExtra("uname", username);
        i.putExtra("firstlaunch","no");
        startActivity(i);
        finish();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
